package com.sfac.service;

import com.sfac.common.vo.Result;
import com.sfac.test.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * TestFeignClient
 */
@FeignClient(name = "alibaba-service-test")
public interface TestFeignClient {

	@GetMapping(value = "/api/test/city/{cityId}")
	public City getCityByCityId(@PathVariable int cityId);

	@PutMapping(value = "/api/test/city", consumes = "application/json")
	public Result<City> updateCity(@RequestBody City city);
}
